package com.diancan.modules.user.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.diancan.domain.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from user")
    public List<User> selectAllUser();

    @Select("select * from user where name=#{name} and password=#{password};")
    public User login(String name, String password);
}
